package xyz.zhzby.cyzx.oj.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.zhzby.cyzx.servicebase.domain.DataLogInfo;

import java.io.Serializable;

/**
 * <p>
 * 试题表
 * </p>
 *
 * @author zby
 * @since 2021-12-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oj_problem")
@ApiModel(value="Problem对象", description="试题表")
public class Problem extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "试题序号")
    @TableField("number")
    private Integer number;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "最大运行时间")
    @TableField("time_limit")
    private Integer timeLimit;

    @ApiModelProperty(value = "最大运行内存")
    @TableField("memory_limit")
    private Integer memoryLimit;

    @ApiModelProperty(value = "试题描述")
    @TableField("_describe")
    private String describe;

    @ApiModelProperty(value = "提示")
    @TableField("hint")
    private String hint;

    @ApiModelProperty(value = "状态（0草稿1发布2回收站）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "发布者")
    @TableField("user_id")
    private Long userId;

}
